export const timeWelcome = () => {
  const time = new Date();
  const hour = time.getHours();
  return hour < 5
    ? "凌晨好！"
    : hour <= 7
    ? "早上好！"
    : hour <= 11
    ? "上午好！"
    : hour <= 13
    ? "中午好！"
    : hour <= 17
    ? "下午好！"
    : hour <= 22
    ? "晚上好！"
    : "夜深了！";
};

export const randomWelcome = () => {
  const w = ["欢迎来到蚌埠电信云上看数系统!"];
  return w[Math.floor(Math.random() * w.length)];
};
